package com.xfcy.blog.service;

import com.xfcy.blog.entity.FriendLink;

import javax.mail.MessagingException;

/**
 * 发送邮件service接口
 * @author 晓风残月Lx
 * @date 2023/4/19 14:27
 */
public interface EmailService {

    /**
     * 邮箱通知我
     * @param subject
     * @param content
     */
    void emailNoticeMe(String subject, String content);

    /**
     * 发送验证码
     * @param email
     */
    void sendCode(String email) throws MessagingException;

    /**
     * 审核友链通不通过发送通知
     * @param friendLink
     */
    void sendFriendEmail(FriendLink friendLink);
}
